<template>
  <div>
    <el-form :inline="true" class="demo-form-inline">
      <el-form-item label="线路">
        <el-input placeholder="请选择线路"></el-input>
      </el-form-item>
      <el-form-item label="活动时间">
        <el-col :span="11">
          <el-form-item prop="date1">
            <el-date-picker type="date" placeholder="开始日期" style="width: 100%;"></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col class="line" :span="1">-</el-col>
        <el-col :span="11">
          <el-form-item prop="date2">
            <el-date-picker placeholder="结束时间" style="width: 100%;"></el-date-picker>
          </el-form-item>
        </el-col>
      </el-form-item>
      <el-form-item>
        <el-button type="primary">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table
      :data="tableData"
      stripe
      style="width: 100%">
      <el-table-column
        prop="lineName"
        label="线路名称"
        width="180">
      </el-table-column>
      <el-table-column
        prop="lineAreaEn"
        label="线路英文"
        width="180">
      </el-table-column>
      <el-table-column
        prop="lineAreaCode"
        label="线路区号"
        width="180">
      </el-table-column>
      <el-table-column
        prop="LineSMSCode"
        label="短信代码"
        width="180">
      </el-table-column>
      <el-table-column
        prop="LineLimit"
        label="充值额度">
      </el-table-column>
      <el-table-column
        prop="lineUse"
        label="已用额度">
      </el-table-column>
      <el-table-column
        prop="putTime"
        label="充值时间">
      </el-table-column>
    </el-table>
    <el-pagination
      style="margin-top: 10px"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400">
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: 'MyRecord',
  data () {
    return {
      currentPage: 1,
      tableData: [{
        lineName: '马来西亚',
        lineAreaEn: 'Malaysia',
        lineAreaCode: 'MY',
        LineSMSCode: '60',
        LineLimit: '10000',
        lineUse: '900',
        putTime: '2020-09-25'
      }, {
        lineName: '马来西亚',
        lineAreaEn: 'Malaysia',
        lineAreaCode: 'MY',
        LineSMSCode: '60',
        LineLimit: '10000',
        lineUse: '900',
        putTime: '2020-09-25'
      }, {
        lineName: '马来西亚',
        lineAreaEn: 'Malaysia',
        lineAreaCode: 'MY',
        LineSMSCode: '60',
        LineLimit: '10000',
        lineUse: '900',
        putTime: '2020-09-25'
      }
      ]
    }
  },
  methods: {
    handleSizeChange (val) {
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange (val) {
      console.log(`当前页: ${val}`)
    }
  }
}
</script>

<style scoped>

</style>
